const path = require('path')
function resolve (dir) {
  return path.join(__dirname, dir)
}

let proxyObj = {};
  proxyObj['/']={
      ws:false,
      //配置后端的项目路径
      target:'http://localhost:9600',
      changeOrigin:true,
      pathRewrite:{
          '^/':''
      }
  };

module.exports = {
   pluginOptions: { // 第三方插件配置
        'style-resources-loader': {
          preProcessor: 'less',
          patterns: [path.resolve(__dirname, './src/assets/css/base.less')] // less所在文件路径
        }
      },
      devServer:{
        host:'localhost',
        //前端的端口号
        port:8081,
        proxy:proxyObj
    }
  }

  